package br.edu.fanor.esfinge.services.impl;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.edu.fanor.esfinge.entity.Editora;
import br.edu.fanor.esfinge.services.EditoraServiceRemote;

@Stateless
public class EditoraServiceImpl implements EditoraServiceRemote{
	
	@PersistenceContext
	private EntityManager em; 

	@Override
	public Editora inserir(Editora editora) {
		em.persist(editora);
		return editora;
	}
	
	

}
